package com.sx.yqxt.pojo.vo;

import com.sx.yqxt.pojo.bo.MTRBo;
import com.sx.yqxt.pojo.entity.Record;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class RecordVO {
    private Integer add_recover;
    private Integer add_con;
    private Integer add_loc;
    private Integer add_out;
    private Integer add_no;
    private Integer now_con;
    private Integer now_loc;
    private Integer now_out;
    private Integer now_no;
    private Integer con;
    private Integer out;
    private Integer recover;
    private Integer dead;
    private String lastUpdateTime;
    private Integer add_dead;
    private Integer out_now_con;
    private Integer add_out_now_con;

    public RecordVO(MTRBo mtrBo){
        this.con = mtrBo.getTotal().getConfirm();//累计确诊
        this.out = mtrBo.getTotal().getInput();//累计境外
        this.recover = mtrBo.getTotal().getHeal();//累计确诊
        this.dead = mtrBo.getTotal().getDead();//累计治愈
        this.now_no = mtrBo.getExtData().getNoSymptom();//现有无症状
        this.add_no = mtrBo.getExtData().getIncrNoSymptom();//新增无症状
        this.add_con = mtrBo.getToday().getConfirm();//新增确诊
        this.now_con = this.con-this.recover-this.dead;
        this.lastUpdateTime = mtrBo.getDate();
        this.add_out = mtrBo.getToday().getInput();
        this.add_dead = mtrBo.getToday().getDead();
        this.add_recover = mtrBo.getToday().getHeal();
    }


}
